package com.gem.day12.homework;

public class Good {
	private String gnameString;
	private double price;
	private int num;

	public String getGnameString() {
		return gnameString;
	}

	public void setGnameString(String gnameString) {
		this.gnameString = gnameString;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public int getNum() {
		return num;
	}

	public void setNum(int num) {
		this.num = num;
	}

	public Good(String gnameString, double price, int num) {
		super();
		this.gnameString = gnameString;
		this.price = price;
		this.num = num;
	}

	public Good() {
		super();
	}

	@Override
	public String toString() {
		return gnameString + "\t" + price + "\t" + num;
	}

}
